package com.sz.youban.dt.service.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.feilong.core.Validator;
import com.sz.youban.dt.model.MiguanReportRequest;

/**
 * Created by liyang on 2017/6/27.
 */
public class JuxinliUtil {

    private final Logger log = LoggerFactory.getLogger(this.getClass());


    /**
     * 聚信立蜜罐报告接口，请求参数校验
     */
    public static boolean checkMiguanReportParam(MiguanReportRequest miguanReportRequest) {
        if(Validator.isNullOrEmpty(miguanReportRequest) || Validator.isNullOrEmpty(miguanReportRequest.getPhone())
                || Validator.isNullOrEmpty(miguanReportRequest.getIdCard()) || Validator.isNullOrEmpty(miguanReportRequest.getName())){

            //必要参数不足，返回失败
            return false;
        }else{
            return true;
        }
    }
}
